<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="utf-8" />
	<title>用户注册</title>
	<link rel="stylesheet" href="bootStrap/css/bootstrap.min.css">
	<style>
		body {
			background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/banner1.png') no-repeat;
			background-attachment: fixed;
			background-size: cover;
			margin: 0;
			padding: 0;
		}
		form {
			width: 400px;
			margin: 180px auto;
			padding: 20px 30px;
			background-color: rgba(255, 255, 255, 0.8);
			border-radius: 10px;
			box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		}
		form div {
			margin-bottom: 10px;
		}
		a:link, a:visited, a:hover, a:active {
			text-decoration: none;
			color: rgba(0, 0, 0, 0.5);
		}
		h2 {
			text-align: center;
			font-weight: bold;
			margin-bottom: 20px;
		}
		input[type="text"], input[type="password"] {
			width: 100%;
			padding: 10px;
			border: 1px solid #ccc;
			border-radius: 5px;
		}
		.btn {
			width: 100%;
			padding: 10px;
			background-color: #007bff;
			color: #fff;
			border: none;
			border-radius: 5px;
			cursor: pointer;
		}
		.btn:hover {
			background-color: #0056b3;
		}
	</style>
</head>
<body onload="checkError()">
<div class="container">
	<form action="./register.do" method="post">
	<div style="margin-bottom:20px;">
		<h2><b>cqie</b>新闻发布系统</h2>
	</div>
	<div class="form-group has-success has-feedback">
		<input type="text" class="form-control" name="account" placeholder="用户名">
		<span class="glyphicon glyphicon-user form-control-feedback"></span>
	</div>
	<div class="form-group has-success has-feedback">
		<input type="password" class="form-control" name="pwd" placeholder="请输入密码">
		<span class="glyphicon glyphicon-lock form-control-feedback"></span>
	</div>
	<div class="form-group has-success has-feedback">
		<input type="password" class="form-control" name="sure_pwd" placeholder="再次输入密码">
		<span class="glyphicon glyphicon-lock form-control-feedback"></span>
	</div>
	<div class="form-group has-success has-feedback">
		<input type="text" class="form-control" name="userName" placeholder="请输入真实姓名">
		<span class="glyphicon glyphicon-briefcase form-control-feedback"></span>
	</div>
	<div class="form-check">
		<label class="form-check-label">
			<input type="checkbox" class="form-check-input" value=""><span style="font-size:15px;">记住我</span>
		</label>
	</div>
	<div>
		<button type="submit" class="btn btn-primary btn-block">注册</button>
	</div>
	<div>
		<a href="login.jsp" style="display:inline;font-size:15px;">登录</a>
		<a href="#" style="display:inline;font-size:15px;margin-left:185px;">忘记密码？</a>
	</div>
	</form>
</div>
<script>
	window.onload = function() {
		checkError();
	}
	function checkError() {
		var errorMsg = "${errorMsg}";
		if (errorMsg) {
			alert(errorMsg);
			<% session.removeAttribute("errorMsg"); %>
		}
	}
</script>
</body>
</html>
